import request from '@/utils/request'

export function queryByPage(query) {
    return request({
      url: '/nhpStationEnv/queryByPage',
      method: 'get',
      params: query
    })
}


export function queryById(stationId) {
    return request({
        url: '/nhpStationEnv/queryById/'+ stationId,
        method: 'get'
      })
}

export function updateStationEnv(data) {
    return request({
        url: '/nhpStationEnv/edit',
        method: 'post',
        data:data
      })
}

export function calculateEnvScore() {
    return request({
        url: '/nhpStationEnv/calculateEnvScore',
        method: 'get'
      })
}
